package com.yu.bigdata.spark.core.rdd.builder

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

/**
 *
 * @author wu
 * @create 2022-12-21-16:38 
 */
object Spark01_RDD_File1 {
  def main(args: Array[String]): Unit = {
    val sparkConf = new SparkConf().setMaster("local[*]").setAppName("RDD").set("spark.testing.memory", "512000000")
    val sc = new SparkContext(sparkConf)
    val rdd  = sc.wholeTextFiles("datas")
    rdd.collect().foreach(println)
    sc.stop()
  }

}
